<?php
$_POST['id_task']=$_GET['id_task'];
$query=_insert('task_plan_detail',$_POST);
if($query){
    $_SESSION['success']='Task plan has inserted successfully ';
}else{
    $_SESSION['failed']='Failed to insert Task plan';
}        
redirect('index.php?page=task_plan/tp-view');
?>
